<div class="clr-row">
  <div class="clr-col-lg-12 clr-col-md-12 clr-col-sm-12 clr-col-xs-12">
    <div class="table-search">
      <div class="table-search-left">
        <button class="wayne-button normal" (click)="createResource()">
          {{'ADMIN.KUBERNETES.STORAGECLASS.CREATE' | translate}}
        </button>
        <button class="wayne-button normal" (click)="retrieveResource()">
          {{'ADMIN.KUBERNETES.ACTION.REFRESH' | translate}}
        </button>
        <wayne-filter-box (confirm)="onConfirmEvent()" (cancel)="onCancelEvent()">
          <wayne-checkbox-group [(ngModel)]="showList">
            <wayne-checkbox value="name">{{'ADMIN.KUBERNETES.STORAGECLASS.LIST.NAME' | translate}}</wayne-checkbox>
            <wayne-checkbox value="label">{{'ADMIN.KUBERNETES.STORAGECLASS.LIST.LABEL' | translate}}</wayne-checkbox>
            <wayne-checkbox value="provisioner">{{'ADMIN.KUBERNETES.STORAGECLASS.LIST.PROVISIONER' | translate}}</wayne-checkbox>
            <wayne-checkbox value="reclaimPolicy">{{'ADMIN.KUBERNETES.STORAGECLASS.LIST.RECLAIMPOLICY' | translate}}</wayne-checkbox>
            <wayne-checkbox value="age">{{'ADMIN.KUBERNETES.STORAGECLASS.LIST.AGE' | translate}}</wayne-checkbox>
          </wayne-checkbox-group>
        </wayne-filter-box>
      </div>
    </div>

    <wayne-list-storageclass
      [resources]="resources"
      [showState]="showState"
      (delete)="onDeleteResourceEvent($event)"
      (edit)="onEditResourceEvent($event)"
      [page]="pageState.page"
      [cluster]="cluster"
      (paginate)="retrieveResource($event)">
    </wayne-list-storageclass>
  </div>
</div>
<deletion-dialog (outputObj)="confirmDeleteEvent($event)"></deletion-dialog>
<wayne-ace-editor (createOutputObj)="onCreateResourceEvent($event)" (outputObj)="onSaveResourceEvent($event)"></wayne-ace-editor>
<wayne-float-window value="{{ cluster }}">
  <wayne-float-window-item *ngFor="let cluster of clusters" [value]="cluster"
                           (click)="jumpToHref(cluster)"></wayne-float-window-item>
</wayne-float-window>
